package java67_4;

import java.util.Scanner;

public class PrizeSearch {

	public static void main(String[] args) {
		// 价格查询
		Scanner input = new Scanner(System.in);
		String answer = "y";
		// boolean input.nextBoolean()//true,false
		while (!answer.equals("n")) {
			System.out.print("请输入要查询的价格:");
			int sel = input.nextInt();
			switch (sel) {
			case 1:
				System.out.println("T恤 145元");
				break;
			case 2:
				System.out.println("球鞋 370元");
				break;
			case 3:
				System.out.println("球拍 570元");
				break;
			default:
				System.out.println("输入错误");
				break;
			}
			System.out.print("还玩不(输入n,不玩了退出)?");
			answer = input.next();
		}
		System.out.println("程序结束");
	}

}
